package com.love.marriage.userBalanceInfo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.love.marriage.common.vo.BaseVo;
import com.love.marriage.config.Long2StringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * description:  用户余额表Vo
 * author:       mybatisPlus
 * createDate:   2024-10-17 21:19:44
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "UserBalanceInfoAddVo", description = "充值vo")
public class UserBalanceInfoAddVo extends BaseVo<UserBalanceInfoAddVo>{

    @JsonSerialize(using = Long2StringSerializer.class)
    @Schema(description = "用户ID，关联用户表", type = "Long", implementation = Long.class)
    private Long userId;

    @JsonSerialize(using = Long2StringSerializer.class)
    @Schema(description = "充值包id(与余额互斥)", type = "Long", implementation = Long.class)
    private Long rechargePackageId;

    @Schema(description = "余额", type = "BigDecimal", implementation = BigDecimal.class)
    private BigDecimal amount;
}
